package rmiServer;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;

public class RMIServer {

	/**
	 * @param args
	 * @throws RemoteException 
	 * @throws MalformedURLException 
	 */
	public static void main(String[] args) throws RemoteException, MalformedURLException {
		FatorialRemote fatorial = new FatorialRemote();
		Naming.rebind("fatorial", fatorial);
		System.out.println("Servidor Iniciado!");
	}

}
